//
// Created by ChenJi on 2021/4/4.
//

#ifndef WARNER_2_STRING_LIBRARY_H
#define WARNER_2_STRING_LIBRARY_H

#endif //WARNER_2_STRING_LIBRARY_H

#include "main.h"

uint8_t mystr_len(uint8_t *uint8_t);

/**
 * from: https://blog.csdn.net/zb774095236/article/details/105637741
 * @author 爬行的菜鸟
 * @param num
 * @param str
 * @param radix
 * @return len of string
 */
uint8_t myitoa(int32_t num, uint8_t *str, uint8_t radix);

uint8_t *format_ID(uint16_t data, uint8_t *buff);

uint8_t *
format_time(uint8_t year, uint8_t day, uint8_t month, uint8_t hour, uint8_t minute, uint8_t second, uint8_t *buf);
uint8_t *
format_time_inDay(uint8_t hour, uint8_t minute, uint8_t second, uint8_t *buf);